import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/pages/Login'
import Home from  '@/pages/Home'
import EditPost from '@/pages/EditPost'
import PostList from '@/pages/PostList'
Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path:'/login',
      name:'LoginPage',
      component:Login
    },
    {
      path:'/home',
      name:'HomePage',
      component:Home
    },
    {
      path:'/editpost',
      name:'EditPostPage',
      component:EditPost
    },
    {
      path:'/postlist',
      name:'PostListPage',
      component:PostList
    }
  ]
})
